//
//  HButtonView.h
//  PigMarket
//
//  Created by Felix on 2019/3/11.
//  Copyright © 2019 felix.pigmarket.oc. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface HButtonView : UIView

@property(nonatomic, copy) void(^tapped)(void);

@property(nonatomic, strong) UIView *badgeView;

- (instancetype) initWithLeftIcon:(UIImageView *)leftIcon
                            title:(UILabel *)titleLabel;

- (instancetype) initWithRightIcon:(UIImageView *)rightIcon
                             title:(UILabel *)titleLabel;

- (instancetype) initWithTopIcon:(UIImageView *)topIcon
                           title:(UILabel *)titleLabel;
- (instancetype) initWithTopIcon:(UIImageView *)topIcon
                       badgeView:(UIView *)badgeView
                           title:(UILabel *)titleLabel;

- (instancetype) initWithBottomIcon:(UIImageView *)bottomIcon
                              title:(UILabel *)titleLabel;

- (instancetype) initWithTopIcon:(nullable UIImageView *)topIcon
                        leftIcon:(nullable UIImageView *)leftIcon
                      bottomIcon:(nullable UIImageView *)bottomIcon
                       rightIcon:(nullable UIImageView *)rightIcon
                           title:(nullable UILabel *)titleLabel
                       badgeView:(nullable UIView *)badgeView;

@end

NS_ASSUME_NONNULL_END
